<?php $this->beginContent('//layouts/main'); ?>
<div class="container">
	<div class="span-19">
		<div id="content">
		
			<?php 
				$error = Yii::app()->user->getFlash('error');
				if (!empty($error)): ?>
				<div class="flash-error"><?php echo $error; ?></div>
			<?php endif;?>
			<?php 
				$notice = Yii::app()->user->getFlash('notice');
				if (!empty($notice)): ?>
				<div class="flash-notice"><?php echo $notice; ?></div>
			<?php endif;?>
			<?php 
				$success = Yii::app()->user->getFlash('success');
				if (!empty($success)): ?>
				<div class="flash-success"><?php echo $success; ?></div>
			<?php endif;?>

			 <?php if(!empty($this->h1)): ?>
				<h1><?php echo $this->h1; ?></h1>
			<?php endif; ?>

			<?php echo $content; ?>
		</div><!-- content -->
	</div>
	<div class="span-5 last">
		<div id="sidebar">
		<?php
			$this->beginWidget('zii.widgets.CPortlet', array(
				'title'=>'Operations',
			));
			$this->widget('zii.widgets.CMenu', array(
				'items'=>$this->menu,
				'htmlOptions'=>array('class'=>'operations'),
			));
			$this->endWidget();
		?>
		</div><!-- sidebar -->
	</div>
</div>
<?php $this->endContent(); ?>